package com.study.mike.model.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.study.mike.common.converter.BookStatusConverter;
import com.study.mike.common.enums.BookStatusEnum;
import lombok.Data;

/**
 * @author KangHui
 * @Date 2023/3/24 10:07
 */
@Data
public class BookImportPO {


    /**
     * 书名
     */
    @ExcelProperty(index = 0)
    private String bookName;

    /**
     * 编号
     */
    @ExcelProperty(index = 1)
    private String bookNo;

    /**
     * 价格
     */
    @ExcelProperty(index = 2)
    private String bookPrice;

    /**
     * 作者
     */
    @ExcelProperty(index = 3)
    private String bookAuthor;

    /**
     * 状态0禁用、1启用
     */
    @ExcelProperty(index = 4, converter = BookStatusConverter.class)
    private BookStatusEnum status;

    /**
     * 出版日期
     */
    @ExcelProperty(index = 5)
    private String bookTime;

}
